package org.wishwork.api.sign;

import org.wishwork.api.sign.verify.Verify;
import org.wishwork.api.sign.verify.VerifyRequest;
import org.wishwork.context.Context;

/**
 * @description: 验证签名相关Api
 * @author: WangYX
 * @create: 2022-04-01 17:34
 * @Version: 1.0.0
 **/
public class SignApi {

    private Context context;

    private final Verify verify;

    public SignApi(Context context) {
        this.context = context;
        this.verify = new Verify(context);
    }

    /**
     * 验证签名
     *
     * @param verifyRequest 签名验证请求体
     * @return
     */
    public boolean verify(VerifyRequest verifyRequest) {
        return this.verify.verify(verifyRequest);
    }


}
